Don't move back one char when we are actually at the end of the paragraph.
authorOwen Taylor <otaylor@redhat.com>
Thu, 16 Nov 2000 01:19:27 +0000 (01:19 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Thu, 16 Nov 2000 01:19:27 +0000 (01:19 +0000)
Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>

* gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end):
Don't move back one char when we are actually at the end of the
paragraph.

CV: ----------------------------------------------------------------------

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktextlayout.c

index a5427d52f5327046e3d603bf87610d752a733070..4040a6fbcfab33dbfdd8557f4e41ad15cdfce0d8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
+       Don't move back one char when we are actually at the end of the 
+       paragraph.
+
 2000-11-15  Robert Brady  <robert@suse.co.uk>
 
        * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
index a5427d52f5327046e3d603bf87610d752a733070..4040a6fbcfab33dbfdd8557f4e41ad15cdfce0d8 100644 (file)
@@ -1,3 +1,9 @@
+Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
+       Don't move back one char when we are actually at the end of the 
+       paragraph.
+
 2000-11-15  Robert Brady  <robert@suse.co.uk>
 
        * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
index a5427d52f5327046e3d603bf87610d752a733070..4040a6fbcfab33dbfdd8557f4e41ad15cdfce0d8 100644 (file)
@@ -1,3 +1,9 @@
+Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
+       Don't move back one char when we are actually at the end of the 
+       paragraph.
+
 2000-11-15  Robert Brady  <robert@suse.co.uk>
 
        * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
index a5427d52f5327046e3d603bf87610d752a733070..4040a6fbcfab33dbfdd8557f4e41ad15cdfce0d8 100644 (file)
@@ -1,3 +1,9 @@
+Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
+       Don't move back one char when we are actually at the end of the 
+       paragraph.
+
 2000-11-15  Robert Brady  <robert@suse.co.uk>
 
        * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
index a5427d52f5327046e3d603bf87610d752a733070..4040a6fbcfab33dbfdd8557f4e41ad15cdfce0d8 100644 (file)
@@ -1,3 +1,9 @@
+Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
+       Don't move back one char when we are actually at the end of the 
+       paragraph.
+
 2000-11-15  Robert Brady  <robert@suse.co.uk>
 
        * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
index a5427d52f5327046e3d603bf87610d752a733070..4040a6fbcfab33dbfdd8557f4e41ad15cdfce0d8 100644 (file)
@@ -1,3 +1,9 @@
+Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
+       Don't move back one char when we are actually at the end of the 
+       paragraph.
+
 2000-11-15  Robert Brady  <robert@suse.co.uk>
 
        * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
index a5427d52f5327046e3d603bf87610d752a733070..4040a6fbcfab33dbfdd8557f4e41ad15cdfce0d8 100644 (file)
@@ -1,3 +1,9 @@
+Wed Nov 15 20:16:54 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): 
+       Don't move back one char when we are actually at the end of the 
+       paragraph.
+
 2000-11-15  Robert Brady  <robert@suse.co.uk>
 
        * modules/input/iminuktitut.c (inuktitut_compose_seqs): 
index 68e2d0abbd50c52081bfbde0f82250d136516299..5d5b8e8ee77ac3aa7b7f3dd45ecc29de7beac00c 100644 (file)
@@ -2501,11 +2501,11 @@ gtk_text_layout_move_iter_to_line_end (GtkTextLayout *layout,
                                      direction < 0 ? byte_offset : byte_offset + layout_line->length,
                                      0);
 
-          /* FIXME: As a bad hack, we move back one position to avoid going
-          * to next line on a forced break not at whitespace. Real fix
-          * is to keep track of whether marks are at leading or trailing edge?
-           */
-          if (direction > 0 && layout_line->length > 0)
+          /* FIXME: As a bad hack, we move back one position when we
+          * are inside a paragraph to avoid going to next line on a
+          * forced break not at whitespace. Real fix is to keep track
+          * of whether marks are at leading or trailing edge?  */
+          if (direction > 0 && layout_line->length > 0 && !gtk_text_iter_ends_line (iter))
             gtk_text_iter_prev_char (iter);
 
           break;